import service from "@/request/index";

// export function login(data: any) {
//     return service({
//         url: '/login',
//         method: 'post',
//         data
//     });
// }

export function get<T>(url: string): Promise<string> {
    return service({
        url,
        method: 'get',
    });
}

export function post<T>(url: string, data: T): Promise<string> {
    return service({
        url,
        method: 'post',
    });
}